import request from '@/utils/request'

export function add(token,data){
  return request({
    url: 'thk/store_member/add',
    method: 'post',
    params: {token},
    data
  })
}

export function getList(token,data){
  return request({
    url: 'thk/store_member/get_list',
    method: 'post',
    params: {token},
    data
  })
}

export function info(token, data) {
  return request({
    url: 'thk/store_member/info',
    method: 'post',
    params: { token },
    data
  })
}

export function edit(token, data) {
  return request({
    url: 'thk/store_member/edit',
    method: 'post',
    params: { token },
    data
  })
}

export function del(token, data) {
  return request({
    url: 'thk/store_member/delete',
    method: 'post',
    params: { token },
    data
  })
}
//获取会员介绍
export function getmemberintroduce(token){
  return request({
    url:'thk/store_member/find_store_member',
    method: 'post',
    params: {token : token}
  })
}

//修改会员介绍
export function detailvip(token,head_img,detail){
  return request({
    url: 'thk/store_member/update_store_member',
    method: 'post',
    params: {token:token,head_img:head_img,detail:detail}
  })
}